/**
 * 页面示例-路由配置
 * @author LiQingSong
 */
import LayoutIndex from '@/layout/Index';
import AppMainLayout from '@/layout/components/AppMain';

const router = {
    path: '/costcenter',
    component: LayoutIndex,
    redirect: '/costcenter/order',
    name: 'costcenter',
    meta: {
        title: '费用中心',
        icon: 'costcenter'
    },
    children: [
        // {
        //     path: 'homepage',
        //     component: () => import('@/views/costcenter/homepage'),
        //     name: 'homepage',
        //     meta: {
        //         title: '主页',
        //         icon: 'page',
        //         breadcrumb: [
        //             {
        //                 meta: { title: "主页" }
        //             }
        //         ]
        //     },
            
        // },
        {
            path: 'order',
            component: () => import('@/views/costcenter/order'),
            name: 'order',
            meta: {
                title: '订单管理',
                icon: 'order',
                breadcrumb: [
                    {
                        meta: { title: '订单管理' }
                    },

                ],
            },

        },
        {
            path: 'renew',
            component: () => import('@/views/costcenter/renew'),
            name: 'renew',
            meta: {
                title: '续费管理',
                icon: 'pagelist',
                breadcrumb: [
                    {
                        meta: { title: '续费管理' }
                    },

                ],
            },
            hidden: true
        },
        {
            path: 'incomedetail',
            component: () => import('@/views/costcenter/incomedetail'),
            name: 'order',
            meta: {
                title: '收支明细',
                icon: 'pagelist',
                breadcrumb: [
                    {
                        meta: { title: '收支明细' }
                    },

                ],
            },
            hidden: true
        },
        {
            path: 'expensebill',
            component: () => import('@/views/costcenter/expensebill'),
            name: 'expensebill',
            meta: {
                title: '费用账单',
                icon: 'pagelist',
                breadcrumb: [
                    {
                        meta: { title: '费用账单' }
                    },

                ],
            },
            hidden: true
        },
        {
            path: 'invoicecontract',
            component: () => import('@/views/costcenter/invoicecontract'),
            name: 'invoicecontract',
            meta: {
                title: '发票与合同',
                icon: 'pagelist',
                breadcrumb: [
                    {
                        meta: { title: '发票与合同' }
                    },

                ],
            },
            hidden: true
        },
        {
            path: 'cashcoupon',
            component: () => import('@/views/costcenter/cashcoupon'),
            name: 'cashcoupon',
            meta: {
                title: '代金卷',
                icon: 'pagelist',
                breadcrumb: [
                    {
                        meta: { title: '代金卷' }
                    },

                ],
            },
            hidden: true
        },
        {
            path: 'exportrecord',
            component: () => import('@/views/costcenter/exportrecord'),
            name: 'exportrecord',
            meta: {
                title: '导出记录',
                icon: 'pagelist',
                breadcrumb: [
                    {
                        meta: { title: '导出记录' }
                    },

                ],
            },
            hidden: true
        },
    ]
};

export default router;
